package com.project.mapper;

import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IUserMapper {
    /**
     * 登录
     * @param name
     * @param pwd
     * @return
     */
    @Select("select * from t_user where u_name=#{name} and u_pwd=#{pwd}")
    @ResultMap("userMap")
    public UserBean login(@Param("name") String name,@Param("pwd") String pwd);
}
